package demo2;

public class Test {
    public static void main(String[] args) {
        MyLinkList list =new MyLinkList();
        list.addFirst(2);
        list.addFirst(2);
        list.addLast(2);
        list.addLast(2);
        list.addLast(2);
        list.display();
        list.addIndex(7,1);//(值,位置)
        list.addIndex(8,3);//(值,位置)
        list.display();
        list.size();
//        list.remove(2);
//        list.remove(5);
        list.removeAllKey(2);//删除全部元素key
        list.display();
    }
}
